package com.typy.www.tpay.bean.bean;

import java.io.Serializable;

public class PhotoOperation implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1412131035089305519L;

	public static final int OPERATION_NONE = 0; // 服务器上的原图，不需要操作
	public static final int OPERATION_ADD = 1; // 新增本地图片
	public static final int OPERATION_DELETE = 2; // 需要删除的图片
	public static final int OPERATION_CHANGE_TYPE = 3; // 修改类型的图片

	private int type;
	private int operation = OPERATION_NONE;
	private String photo;
	private String id;
	private int changeFromType;
	private int Sa;                            // 审核状态0：未提交审核1：等待审核2：审核通过3：审核不通过
	private String demandId;

	public String getDemandId() {
		return demandId;
	}

	public void setDemandId(String demandId) {
		this.demandId = demandId;
	}

	private String Fn;
	public String getFn() {
		return Fn;
	}
	private boolean IsAdd;

	public boolean isAdd() {
		return IsAdd;
	}

	public void setAdd(boolean add) {
		IsAdd = add;
	}

	public void setFn(String fn) {
		Fn = fn;
	}
	public int getSa() {
		return Sa;
	}

	public void setSa(int sa) {
		Sa = sa;
	}

	public PhotoOperation() {
	}

	public PhotoOperation(int type, String photo) {
		this.type = type;
		this.photo = photo;
	}

	public PhotoOperation(int type, int operation, String photo) {
		super();
		this.type = type;
		this.operation = operation;
		this.photo = photo;
	}

	public PhotoOperation(int type, String photo, String id) {
		super();
		this.type = type;
		this.photo = photo;
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getOperation() {
		return operation;
	}

	public void setOperation(int operation) {
		this.operation = operation;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getChangeFromType() {
		return changeFromType;
	}

	public void setChangeFromType(int changeType) {
		this.changeFromType = changeType;
	}

	@Override
	public String toString() {
		return "PhotoOperation{" +
				"type=" + type +
				", operation=" + operation +
				", photo='" + photo + '\'' +
				", id='" + id + '\'' +
				", changeFromType=" + changeFromType +
				", Sa=" + Sa +
				", Fn='" + Fn + '\'' +
				", IsAdd=" + IsAdd +
				'}';
	}
}
